var express = require('express');
var app = express();
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');

const routesHandle = require('./core/routesHandle');
const idsDao = require('./dao/idsDao');

idsDao.createIdsTable();

app.use(bodyParser.json()); //加载解析json的中间件
app.use(bodyParser.urlencoded({
    extended: false
})); //加载解析urlencoded请求体的中间件

app.use(routesHandle);

app.listen(4202);